package priv.ln.project.domain;

/**
 * ClassName: Designer
 * Package: priv.ln.project.domain
 * Description:
 * 设计师类
 * @Author 辣辣
 * @Create 2024/7/17 17:30
 * @Version 1.0
 */
public class Designer extends Programmer{
    private double bones;//奖金

    public Designer() {
    }

    public Designer(int id, String name, int age, double salary, Equipment equipment, double bones) {
        super(id, name, age, salary, equipment);
        this.bones = bones;
    }

    public double getBones() {
        return bones;
    }

    public void setBones(double bones) {
        this.bones = bones;
    }

    @Override
    public String toString() {
        return super.getId() + "\t" + super.getName() + '\t' +
                super.getAge() + "\t" + super.getSalary() + '\t'
                + "设计师" + '\t' + super.getStatus() + '\t' + bones
                + "\t\t\t" + super.getEquipment().getDescription();
    }

    @Override
    public String getTeamDetails() {
        return super.getMemberId() + "/" + super.getId() + "\t" + super.getName()
                + '\t' + super.getAge() + "\t" + super.getSalary() + '\t'
                + "设计师" +'\t' + bones;
    }
}
